﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Collections;

namespace Web.Framework.Search
{
    public class GridViewSearchObjectDataSource : IGridViewSearchObjectDataSource
    {
       public IGridViewSearchObjectDataSource Provider { get; set; }        

       public IList GetObjects()    
       {
           return Provider.GetObjects();
       }

       public IList GetObjects(int maximumRows, int startRowIndex)
       {
           return Provider.GetObjects(maximumRows, startRowIndex);
       }

       public IList GetObjects(string sortExpression)    
       {
           return Provider.GetObjects(sortExpression);
       }

       public int TotalNumberOfGetObjects()
       {
           return Provider.TotalNumberOfGetObjects();
       }

       public IList GetObjects(int maximumRows, int startRowIndex, string sortExpression)
       {
           return Provider.GetObjects(maximumRows, startRowIndex, sortExpression);
       }
    }
}
